package org.itboys.baseobject.entity;

import org.itboys.mongodb.entity.BaseLongIdEntity;

import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Indexed;

/**
 * 数据字典
 * @author weisky
 *
 */
@Entity(value = "DataDictionary", noClassnameStored = true)
public class DataDictionary extends BaseLongIdEntity{

	private static final long serialVersionUID = 751470619953200930L;
	
	private String type;//类型
	@Indexed
	private String key;
	private String value;
	private String desc;// 描述
	private int sort;//排序字段 越小排越前面
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	
}
